package chapter02;

public class Test02_Animal {
    public static void main(String[] args) {
        Animal a = new Animal();
        a.name="老虎";
        a.color="黄白色";
        a.showa();
    }
}
class Animal{
    String name;
    String color;
    void showa(){
        System.out.println("这个动物是"+name);
        System.out.println("它的颜色是"+color);
    }

}
//定义猫类 猫的名字name 猫的颜色color 猫种类 type
//shout 喵喵喵

